package com.yesorno.constants;

import java.util.HashMap;
import java.util.Map;

import com.yesorno.activity.R;

public class Constants {

	/**
	 * 默认的提醒时间
	 */
	public static long COMMON_SLEEP_TIME = 1000 * 60 * 60 * 24;// 默认为一天
	// public static long COMMON_SLEEP_TIME = 1000 * 30;// 测试，现在为30秒

	public static int TASK_ALERT_TYPE_VIBRATOR = 1;// 震动提示
	public static int TASK_ALERT_TYPE_RING = 2;// 铃声提示

	public static int TASK_ALERT_TYPE = TASK_ALERT_TYPE_VIBRATOR;// 用户当前定制通知类型

	/**
	 * 当前登录用户的资料
	 */
	public static String USER_PASS = "";
	public static String USER_PWD = "";
	public static long USER_ID = 0l;

	public static String BASE_HTTP_ENCODE = "UTF-8";// 默认编码
	public static int MAX_RETRY = 5;// 最大尝试次数

	public static String BASE_HTTP_CONTEXT = "http://172.16.16.94:8080/";// 网站的context，写域名
	public static String USER_LOGIN_URL = BASE_HTTP_CONTEXT + "login.jsp?";// 登录请求页的地址
	public static String USER_CATEGORY_LIST_URL = BASE_HTTP_CONTEXT
			+ "user_category_list.jsp?";// 当前用户的分类的列表的地址
	public static String HALL_LIST_URL = BASE_HTTP_CONTEXT + "hall_list.jsp?";// 大厅的列表的地址
	// public static String USER_LIST_URL = BASE_HTTP_CONTEXT + "list.jsp?";//
	// 列表的地址
	// public static String USER_DETAIL_URL = BASE_HTTP_CONTEXT +
	// "detail.jsp?";// 详细的地址
	public static String TOPIC_DETAIL_URL = BASE_HTTP_CONTEXT
			+ "topic_detail.jsp?";// 话题正文的地址
	public static String COMMENT_LIST_URL = BASE_HTTP_CONTEXT
			+ "comment_list.jsp?";// 评论列表的地址
	public static String USER_INFO_URL = BASE_HTTP_CONTEXT + "user_info.jsp?";// 用户的详细信息的地址
	public static String BLACK_LIST_URL = BASE_HTTP_CONTEXT + "black_list.jsp?";// 用户的黑名单的地址
	public static String TOPIC_PUBLIC_LIST_URL = BASE_HTTP_CONTEXT
			+ "topic_list.jsp?";// 用户的发布或参与的话题列表的地址
	public static String TOPIC_JOIN_LIST_URL = BASE_HTTP_CONTEXT
			+ "topic_list.jsp?";// 用户的发布或参与的话题列表的地址
	public static String ATTENTION_LIST_URL = BASE_HTTP_CONTEXT
			+ "attention_list.jsp?";// 关注的人的列表的地址
	public static String FANS_LIST_URL = BASE_HTTP_CONTEXT + "fans_list.jsp?";// 粉丝的列表的地址
	public static String USER_MESSAGE_LIST_URL = BASE_HTTP_CONTEXT
			+ "user_message_list.jsp?";// 用户的私信的列表的地址
	public static String USER_VIEWMESSAGE_LIST_URL = BASE_HTTP_CONTEXT
			+ "user_message_list.jsp?";// 用户的私信的列表的地址
	public static String USER_COMMENT_LIST_URL = BASE_HTTP_CONTEXT
			+ "user_comment_list.jsp?";// 用户的评论的列表的地址
	public static String PERSONAL_MESSAGE_RECALL_URL = BASE_HTTP_CONTEXT
			+ "user_comment_list.jsp?";// 对私信进行回复的地址

	public static String HTTP_REQUEST_GET = "get";
	public static String HTTP_REQUEST_POST = "post";

	public static int TITLE_BTN_MARGIN1 = 10;// TITLE上的第一个按钮距左边的宽度
	public static int TITLE_BTN_MARGIN2 = 10;// TITLE上的按钮距右边的宽度
	public static int TITLE_TITLE_MARGIN = 30;// TITLE上的描述距左边的宽度

	public static int TOPIC_LOGO_WIDTH = 60;// 主题的分类的logo的宽度
	public static int TOPIC_LOGO_HEIGHT = 60;// 主题的分类的logo的高度

	public static String TOPIC_TYPE_1 = "1";
	public static String TOPIC_TYPE_2 = "2";
	public static String TOPIC_TYPE_3 = "3";
	public static String TOPIC_TYPE_4 = "4";
	public static String TOPIC_TYPE_5 = "5";
	public static String TOPIC_TYPE_6 = "6";
	public static String TOPIC_TYPE_7 = "7";
	public static String TOPIC_TYPE_8 = "8";
	public static String TOPIC_TYPE_9 = "9";
	public static String TOPIC_TYPE_10 = "10";
	public static String TOPIC_TYPE_11 = "11";
	public static String TOPIC_TYPE_12 = "12";

	public static int TOPIC_TYPE_1_DRAWABLEID = R.drawable.common_type_logo;
	public static int TOPIC_TYPE_2_DRAWABLEID = R.drawable.common_type_logo;
	public static int TOPIC_TYPE_3_DRAWABLEID = R.drawable.common_type_logo;
	public static int TOPIC_TYPE_4_DRAWABLEID = R.drawable.common_type_logo;
	public static int TOPIC_TYPE_5_DRAWABLEID = R.drawable.common_type_logo;
	public static int TOPIC_TYPE_6_DRAWABLEID = R.drawable.common_type_logo;
	public static int TOPIC_TYPE_7_DRAWABLEID = R.drawable.common_type_logo;
	public static int TOPIC_TYPE_8_DRAWABLEID = R.drawable.common_type_logo;
	public static int TOPIC_TYPE_9_DRAWABLEID = R.drawable.common_type_logo;
	public static int TOPIC_TYPE_10_DRAWABLEID = R.drawable.common_type_logo;
	public static int TOPIC_TYPE_11_DRAWABLEID = R.drawable.common_type_logo;
	public static int TOPIC_TYPE_12_DRAWABLEID = R.drawable.common_type_logo;

	public static Map<String, Integer> TOPIC_TYPE_MAP = new HashMap<String, Integer>();
	static {
		TOPIC_TYPE_MAP.put(TOPIC_TYPE_1, TOPIC_TYPE_1_DRAWABLEID);
		TOPIC_TYPE_MAP.put(TOPIC_TYPE_2, TOPIC_TYPE_2_DRAWABLEID);
		TOPIC_TYPE_MAP.put(TOPIC_TYPE_3, TOPIC_TYPE_3_DRAWABLEID);
		TOPIC_TYPE_MAP.put(TOPIC_TYPE_4, TOPIC_TYPE_4_DRAWABLEID);
		TOPIC_TYPE_MAP.put(TOPIC_TYPE_5, TOPIC_TYPE_5_DRAWABLEID);
		TOPIC_TYPE_MAP.put(TOPIC_TYPE_6, TOPIC_TYPE_6_DRAWABLEID);
		TOPIC_TYPE_MAP.put(TOPIC_TYPE_7, TOPIC_TYPE_7_DRAWABLEID);
		TOPIC_TYPE_MAP.put(TOPIC_TYPE_8, TOPIC_TYPE_8_DRAWABLEID);
		TOPIC_TYPE_MAP.put(TOPIC_TYPE_9, TOPIC_TYPE_9_DRAWABLEID);
		TOPIC_TYPE_MAP.put(TOPIC_TYPE_10, TOPIC_TYPE_10_DRAWABLEID);
		TOPIC_TYPE_MAP.put(TOPIC_TYPE_11, TOPIC_TYPE_11_DRAWABLEID);
		TOPIC_TYPE_MAP.put(TOPIC_TYPE_12, TOPIC_TYPE_12_DRAWABLEID);
	}

	// 评论的类型
	public static int COMMENT_TYPE_YES = 0;
	public static int COMMENT_TYPE_NO = 1;
	public static Map<String, String> COMMENT_TYPE_MAP = new HashMap<String, String>();
	static {
		COMMENT_TYPE_MAP.put(COMMENT_TYPE_YES + "", "Yes");
		COMMENT_TYPE_MAP.put(COMMENT_TYPE_NO + "", "No");
	}

	// 性别的类型
	public static int USER_SEX_MALE = 0;
	public static int USER_SEX_FEMALE = 1;
	public static Map<String, String> USER_SEX_MAP = new HashMap<String, String>();
	static {
		USER_SEX_MAP.put(USER_SEX_MALE + "", "男");
		USER_SEX_MAP.put(USER_SEX_FEMALE + "", "女");
	}

	public static int INFO_FROM_IPHONE = 0;// 来自iphone
	public static int INFO_FROM_ANDROID = 1;// 来自android
	public static Map<String, String> INFO_FROM_MAP = new HashMap<String, String>();
	static {
		INFO_FROM_MAP.put(INFO_FROM_IPHONE + "", "iphone客户端");
		INFO_FROM_MAP.put(INFO_FROM_ANDROID + "", "android客户端");
	}

	public static int USER_COMMENT_TOPICNAME_LEN = 15;// 在信息中的评论里的对应评论的文字的最大长度

}
